home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / CustomOverrideEvent.java < prev    next >
Text File  |  1998-08-06  |  777b  |  32 lines

  1. package com.symantec.itools.vcafe.beans;
  2.  
  3. import java.util.EventObject;
  4.  
  5. /**
  6.  * A "CustomOverride" event gets fired when the user customizer implements 
  7.  * its own OK button and possibly the cancel button
  8.  * 
  9.  * If the customizer does implement the cancel button, it is the customizer's 
  10.  * responsiblity to restore the bean to it's original state.
  11.  */
  12.  
  13. public class CustomOverrideEvent extends EventObject
  14. {
  15.     public static final int CUSTOMIZER_OK = 0;
  16.     public static final int CUSTOMIZER_CANCEL = 1;
  17.     
  18.     protected int state;
  19.     
  20.     public CustomOverrideEvent(Object customizer, int state)
  21.     {
  22.         super(customizer);
  23.         
  24.         this.state = state;
  25.     }
  26.     
  27.     public int getState()
  28.     {
  29.         return state;
  30.     }
  31. }
  32.